<% @page_title = "View borrow rule" %>
<%= stylesheet_link_tag "admin/view-item", :media => "all" %>

<div class="view-borrow-rule-info">
	<h1>View borrow rule</h1>
	<p>
		<label><strong>ID:</strong></label>&nbsp;
		<%= @borrow_rule.id %>
	</p>
	<p>
		<label><strong>Reader group:</strong></label>&nbsp;
		<%= Role.getRoleName(@borrow_rule.role_id) %>
	</p>
	<p>
		<label><strong>Max number of books:</strong></label>&nbsp;
		<%= @borrow_rule.max_book %>
	</p>
	<p>
		<label><strong>Number of day to borrow:</strong></label>&nbsp;
		<%= @borrow_rule.borrow_time %>
	</p>
	<p>
		<label><strong>Number of day to extend:</strong></label>&nbsp;
		<%= @borrow_rule.extended_time %>
	</p>
	<p>
		<label><strong>Punished Money:</strong></label>&nbsp;
		<%= @borrow_rule.punish_money %>
	</p>
	
	<div class='actions'>
		<%= link_to "Edit", :controller => "admin/borrow_rule", :action => "edit", :id => @borrow_rule.id %>
		<%= link_to "Delete", :controller => "admin/borrow_rule", :action => "delete", :id => @borrow_rule.id, :method => "delete", :data => {:confirm => "Are you sure?"} %>
		<%= link_to "Back", :controller => "admin/borrow_rule", :action => "index" %>
	</div>
</div><!-- End .view-borrow-rule-info -->
